projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6044e59
)
(change_frame_size_1): Clean up conditional.
author
Erik Naggum
<erik@naggum.no>
Thu, 22 Aug 1996 08:23:30 +0000
(08:23 +0000)
committer
Erik Naggum
<erik@naggum.no>
Thu, 22 Aug 1996 08:23:30 +0000
(08:23 +0000)
src/dispnew.c
patch
|
blob
|
history
diff --git
a/src/dispnew.c
b/src/dispnew.c
index c45649deb1ec342e127568ccd7359f3fd15cbfa0..96d513b8e59d5f0d4dcc299cf53f53b992ead8a0 100644
(file)
--- a/
src/dispnew.c
+++ b/
src/dispnew.c
@@
-2134,8
+2134,10
@@
change_frame_size_1 (frame, newheight, newwidth, pretend, delay)
FRAME_NEW_WIDTH (frame) = 0;
/* If an argument is zero, set it to the current value. */
- newheight || (newheight = FRAME_HEIGHT (frame));
- newwidth || (newwidth = FRAME_WIDTH (frame));
+ if (newheight == 0)
+ newheight = FRAME_HEIGHT (frame);
+ if (newwidth == 0)
+ newwidth = FRAME_WIDTH (frame);
/* Round up to the smallest acceptable size. */
check_frame_size (frame, &newheight, &newwidth);